<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>速查文档-conda</title>
    <!-- marked工具 -->
    <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
    <!-- markdown样式 github样式 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.1.0/github-markdown-light.min.css">
    <style>
        /* @media (max-width: 767px) { body { padding: 15px; } } */
        /* 居中显示样式 */
        body { 
            box-sizing: border-box;
            min-width: 200px;
            max-width: 980px;
            margin: 0 auto;
            padding: 45px; 
        }
    </style>
</head>
<body>
    <!-- 显示markdown的盒子 -->
    <div id="$m" class="markdown-body"></div>
    <!-- markdown源码 -->
    <textarea id="$t" style="display:none">
## 创建Anaconda 环境

创建环境前需要对conda进行换源

```bash
vim ~/.condarc
```

添加

```bash
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
ssl_verify: true

```

保存并退出(:wq)



```bash
# 创建Anaconda 环境
conda create --name <env_name> <package_names>
# ex: conda create -n python3 python=3.8 numpy pandas
# ex: conda create -n hugging_face python=3.7.6

# 查看现有环境
conda env list

# 切换环境
conda activate <env_name>

# 退出环境
conda deactivate

```
    </textarea>
    <!-- 转换 -->
    <script>$m.innerHTML = marked.parse($t.value);</script>
</body>
</html>
